package com.atguigu.gmall.gateway.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: TestController
 * Description:
 * Date: 2021/12/26 22:16
 *
 * @version:
 * @since JDK 1.8
 */
@RestController
@RequestMapping("kk")
public class TestController {

    @Autowired
    private RedisTemplate redisTemplate;



    @GetMapping("kk")
    public void upperGoods() {
        String userStr = (String)redisTemplate.opsForValue().get("user:login:b13fd378eb2e472e8372723be1ea45ab");
        System.out.println(userStr);
    }




}